package com.yonyou.ucf.mdf.app.isvdxq.other.service;

import com.yonyou.ucf.mdf.app.isvdxq.other.model.TenantConfig;
import org.springframework.stereotype.Service;

import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;

@Service
public class TenantConfigService {
    private Map<String, TenantConfig> tenantConfigStore = new ConcurrentHashMap<>();

    public void saveTenantConfig(TenantConfig tenantConfig) {
        tenantConfigStore.put(tenantConfig.getTenantId_DXQ(), tenantConfig);
    }

    public TenantConfig getTenantConfig(String tenantId) {
        return tenantConfigStore.get(tenantId);
    }
}
